package com.gpms.action.base;

import com.gpms.bean.Student;
import com.gpms.service.common.PublicOperate;
import com.gpms.service.common.PublicOperateFactory;
import com.opensymphony.xwork2.ActionSupport;

public class StudentAction extends ActionSupport
{
	private Student student;
	private String studentID;
	public String getStudentID() {
		return studentID;
	}
	public void setStudentID(String studentID) {
		this.studentID = studentID;
	}
	public Student getStudent() {
		return student;
	}
	public void setStudent(Student student) {
		this.student = student;
	}
	@Override
	public String execute() throws Exception {
		PublicOperate operate = PublicOperateFactory.createOperate("common");
		Student student = operate.showStudent(getStudentID());
		setStudent(student);
		return SUCCESS;
	}
}
